fix compilation on netbsd current; compile-tested hack for CIRCLEQ vs TAILQ in tcpconns
Needs -lm on SunOS