tcp: fix solaris build