Fixed a pile of broken iOS 7 stuff