Made compiles on MacOS X a bit smoother, activated MacOS-specific code for CMake...