Qt4/Qt5 switching fixed

booth Qt4 and Qt5 build now without errors