Added MacOS X support through CMake