Support iOS 6

Closes #1