patch to add support for building on MS-WINDOWS (aka Win32)