io::stream: now throwing on windows, if someone tries to call fd() with invalid file descriptor, which should give a better diagnostics