Fixed compilation under Windows