fix Xcode build