Fixed CMake builds.