Fixes qmake errors during chroot clean build