Fixed CMake errors on Linux.