Scope the glib hack to only < Qt5.11.2 versions
https://bugreports.qt.io/browse/QTBUG-48344
Differential Revision: https://phabricator.kde.org/D14798