try Paul Eggert's upstream fix for the mingw compilation problem in 1.9