Fix compilation warnings on iOS.