Fix CMake displaying dev warnings, and trying to build with Clang (which fails, need to investigate this)