ios: fix contrib compilation with Xcode 5