support for ios < 7 when using xcode 5