Fix compiler flags with CMake build files.