Fixing building for MacOS X