Qt compatibility patch

Workaround for no global namespace in QML