windows: include io.h for close() and write()