some fixes for qt4/qt5 building;