Fix fdwriter for Windows

fd is syscall.Handle, not int, on Windows.
That'll learn me to test properly...
Merge pull request #22 from axw/goroot

Fix fdwriter for Windows