As BUILD_WITH_QT4 is not always set like we assumed, use Qt5_Core