Fixed Xcode build errors.