Separate qt version check from has_qt flag