close_fds=True does not work on Windows, so make it conditional based on
platform.