look for -lsocket by checking for connect()