[lib] add ccnet_daemonize