fix PWD in environment of sub-process (MSWin32)

this fixes the first bug in RT #65512
add a MSWin32 constant to be used for win32-specific bits
A win32 implementation based on IPC::Run
optionally require IPC::Run on Win32
implemented a check for the status of a process that works in win32 and linux