Improved CMakeLists to work on linux as well.