Add support for building with Qt5 and still building with Qt4