Add iOS7/iOS8 compatibility