Fix xcode build for osx