Fix warnings with iOS 6