Fix build on iOS 6.