Modified CMakeLists in order to compile both on my Mac and Linux