Fixed CMakeLists.txt

Fixed CMakeLists.txt for Linux/Mac.