Fixed compilation issue on iOS