For compiling in Windows with MSVC.

Not tested with gcc, but should be ok.