I have a problem with the d3d8 patch. First, the ./configure script skips the dlls/d3d8 and secondly, if I compile the files manually with the Makefile the source files do compile with almost no warnings, but when it is linked it to d3d8.dll.so complains about lots of GL definitions missing. An example:
device.o(.text+0x44dc):/TOOLS/wine/dlls/d3d8/device.c:1770: undefined reference to "glGetError"
with the configure command:
./configure --with-nptl --with-x
All GL header files are at their correct place and are found by the configure script and makefiles.