Add a fallback method for query_qmake() when there's no Qt5 installation
Addresses its usage on systems where Qt5 isn't installed, it allows for modules using it to decide what they should do.
REVIEW: 128488