fix some compilation warnings, add some file to CMakeList for qtcreator