use withSocketsDo to init socket on Win