xcode changes for platinum

this seems to build on osx + ios.