Fix compilation error on iOS 6 SDK