Fix compile warning if not compiled with systemd