Fixed compilation on iOS8.