configure: correctly detect Qt5