Fixing compilation under Windows