Make Qt5 a hard dependency when specified