Partially fix config for qt5