Add iOS 7 compatibility