cmake: Mac OS X support
cmake: cosmos compiles with Xcode