Fix configuration of building Qt5