systemd: fix detection of libsystemd