http://bugs.winehq.org/show_bug.cgi?id=21181
--- Comment #11 from David Gerard dgerard@gmail.com 2010-01-13 11:56:56 --- To work around this one, add CFLAGS="_WIN32", i.e.
CFLAGS="_WIN32" ./configure
Presumably there's a good place to put this in the configuration.