test_template: include syslog-ng.h first

This silences deprecated glib symbols warnings.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
afsocket: Fix compilation with systemd support enabled

self->super.socket_options->sock_type is replaced with
self->super.transport_mapper->sock_type, follow up on this in the
systemd-enabled codepath too.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>