fix building in qt5