Change CMakeLists to properly generate OS X build