Porting to Qt5. CMake files clean up.