Windows POSIX write()

Windows C++ programs using POSIX write or read should have a preprocessor include io.h like:

#ifdef _WIN32
#include <io.h>
#endif