Fixed compilation on gcc