fixed qt 5 build issues