tcp: Include <sys/types.h>

Required by some BSDs.