univeral capture of stdout and stderr and handling of child process pid for windows, *nix, etc.