Autodetect Qt4 and Qt5

Set QT_QMAKE_EXECUTABLE to manually set Qt version or Qt4 will be prioritized.