mingw: fix gfan, part 2