I encountered a build error building Pillow on Windows with MSVS

The fix I found was to use io.h when building with msvc.  unistd.h should be for unix or mingw builds.