Fixed compilation error on iOS