Fix Qt version check for Qt-only build with qmake
Trying to compile with Qt 5.10 exposes the bug with the old, flawed check.