use WSAStartup on windows, replace bzero with memset