qt-gui: Make it possible to build both Qt4 and Qt5 variant