Fix process spawn pgroup error on Windows

Fixes #314