chansrv: include time.h and sys/types.h for BSDs
sesman: FreeBSD bug ports/157282
common: the last pointer in the array environ must be null
xrdp: xrdp_mm.c fix FreeBSD build