libdaemon: modernize.