fixing build on OSX with XCode