modules: update value_pairs_foreach() invocation to match 3.6 prototype

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
modules: add explicit cfg parameter to drivers

syslog-ng 3.6 changed the way drivers may reference the configuration
being parsed. Earlier it used the "configuration" global, now that's gone,
requiring changes in plugins that used the global earlier.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
modules: use stats/stats.h instead of stats.h

As syslog-ng changed this header's location.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
update: Updated modules to be syslog-ng 3.6 compatible
java-dest: create java destination initial commit

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>
java-dest: make it possible to run, more than one java destination

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>
java-dest: remove -Werror

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>