improved handling of Qt5 with CMake