It looks like you are mixing includes from Wine and Mingw, that's not going to work well. My guess is that you didn't run make from the top-level directory, so Wine didn't get a chance to build its includes and Mingw falls back to the w32api ones.
I tried building from the top, from libs/wine/, libs/port/, from some dlls/... and programs/... directories.
When building from the top, I am getting:
make[1]: Entering directory `/home/cvs/wine/libs' make[2]: Entering directory `/home/cvs/wine/libs/port' gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o interlocked.o interlocked.c {standard input}: Assembler messages: {standard input}:253: Error: unknown pseudo-op: `.previous' {standard input}:264: Error: unknown pseudo-op: `.previous' {standard input}:274: Error: unknown pseudo-op: `.previous' {standard input}:284: Error: unknown pseudo-op: `.previous' {standard input}:294: Error: unknown pseudo-op: `.previous' make[2]: *** [interlocked.o] Fehler 1 make[2]: Leaving directory `/home/cvs/wine/libs/port' make[1]: *** [port] Fehler 2 make[1]: Leaving directory `/home/cvs/wine/libs' make: *** [libs] Fehler 2