fix sockets build error in MSVC