Modified to stop using socket functions from net.c and start using functions from env.c
net.c was removed from main mongo C driver repo on github
Removed usage of net.c and resorted to socket functions from env.c
net.c was removed from main c driver repo