Fix writing to stdout/stderr in pool worker processes on windows not working