improve run_process for Win32