use daemon(3) instead of custom daemonize method
add license (LGPLv3)