as I've lost my access to a win32 machine, I've started porting the X windows headers to D, this is only a port of X11/X.h and X11/Xlib.h but enough to make a window appear.
example compile line ....
~/dmd/bin/dmd -I~/dmd/src/phobos/ *.o -L-lX11 -L-L/usr/X11R6/lib
get the sources here