Make CMakeLists compatible with clang