add systemd support and openSUSE build compatibility