tcp: add support for solaris