fixed some compile flags in gcc.cmake and clang.cmake
merge