changes to build with qt5