Added Qt 5 support

Minimal yet functional Qt 5 "port", tested only with a desktop build. The changes required for Qt 5 compatibility are, at least on this target, minor.