Fix the cmake build