Autodetect Qt5 or Qt4

Use QT_QMAKE_EXECUTABLE to set desired Qt version, if multiple installed.
Qml module is built on both versions.
(cherry picked from commit a81784f9bf49cbbc7d3f4a2fbcaccd3e9805f0e9)
[windows] Backport debug installation