More win32 compat for the mongo c driver

Another set of changes, mostly a socket abstraction, for mongoc windows compatibility