Fix compilation with CMake.