LOOM-1812: XCode5/iOS7 compatibility with legacy support for XCode 4.6 + iOS6