Fix compiler error with iOS 6 SDK