OSX Compile fixes
CMake compile fix for OSX