[build] Fix CMake build.