Fix iOS 6 sdk support