tcp: fix build on Solaris

Add missing header.

From Claes Nästén via http://gnats.netbsd.org/56509

Part-of: <!1288>
33 jobs for 1.18 in 2 minutes and 9 seconds (queued for 6 seconds)