Support iOS 6

I don't have an actual device to test on, but building from the iOS 6 SDK from Xcode runs.