Fix fdwriter for Windows

fd is syscall.Handle, not int, on Windows.
That'll learn me to test properly...