make test_closed pass on windows
Merge pull request #25 from longaccess/fix_test_closed

Use `getwinerror` to look up a syscall error code on Windows.  Fixes `test_closed` on Windows.