Fixed compilation issue with iOS 8 platform simulator