Reinstate iOS 5 compatibility

Some people still support iOS 5, and my short tests (just in the simulator) did not show any problems.