Scope the glib hack to only < Qt5.11.2 versions

Authored by svuorela on Aug 17 2018, 11:54 AM.