Implement closefrom()
Fix logging to syslog (Can't initialize after chroot)
compat setproctitle for *BSD.