Fix the build with cmake.