Fix CMake warnings.