chansrv: include sys/types.h for BSDs