WAF: use libsystemd-daemon only if linking actually succeeds