Ensure that Qt 5.1 and above is used when built with Qt5 support.