fix CMakeLists.txt to compile on Linux