add cmake option -DQT_QMAKE_EXECUTABLE=qmake-qt4 to fix build on systems with both qt4 and qt5-base