Fixed compile issue with iOS < 7.0