systemd-journal: Fixed a linker error, which occurred, when building with --with-systemd-journal=optional. (#4304)