Created a Makefile.win in RESGEN/ that allows a dll to be compiled in the same way as the other builds using MINGW32. Not sure if it works though