fix for #9 and other MSWin32 specific bugs