Fix build of qt4+qt5