Fix cmake build, add Clang support