Switch to popen3 on Windows (mswin and mingw).

Skip cygwin for now because that tries to emulate a Posix environment. If someone running on cygwin encounters a problem, we can add it to the bunch.

Should address #171.