fixed bugs in systemd unit generation, made some exported symbols internal
added systemd integration tests (requires manual setup, so disabled by default for now)