(OSX) Fix build for OSX Mavericks