Remove iOS 6 warnings

Uses #ifdefs to control iOS 5 vs iOS 6 SDKs.