inital suport for setting blocking mode

I haven't tested this on windows, I've only read the documentation from microsoft.  This does allow me to set blocking or nonblocking IO on linux.