Add some stuff for iOS 7 compatibility.