Fix xcode compilation warnings