Build STP for Windows from linux using mingw32

I've tested on cross compile environment using [MXE](http://mxe.cc/).
It works but most changes are just putting conditional guards for avoiding compile error or
changing compile option.