Restore iOS < 8 compatibility