qt5 compatibility fixes