Made a bunch of changes to the makefile. It is now confirmed to work on a vanilla installation of mingw32.