some fixes for both Qt5/Qt4 build;
changed to the cmake build;