Fixed compilation for gcc