Add socket->file

uses _open_osfhandle() for treating sockets as files