updated CMakeLists.txt to work for both Linux and Windows