Adjustments for compilation on MSVC and windows compilers in general

You have a strong dependency on UNIX functions and compilers, and compiling for windows using the MINGW32.
I just wanted to allow a more graceful compatibility for windows, without the MINGW32 dependency.
Now it works :-)