libbase: make systemd dependency optional