add lbrickredunix library, daemon and pidfile support