CMake fixes for Linux