make windows compatible by using win-spawn