erts: Fix linking with new systemd library

Also changed so that only epmd links with systemd.