win32: MinGW build support

Shall you be interested, I added a makefile for building with MinGW on Windows.
The `#ifdef` doesn't look too pretty, but I had no better idea how to do that without much ingerence (maybe moving the original header to new `unix/` subdir and patching the `Makefile` would be better?)