Fix warnings on iOS 8.