use intrinsic version
avoid comparing with zero
check return code of WSAStartup