Fixes for iOS < 6.x