chansrv: include time.h for BSDs