Fixed cmake and clang warnings