templates: common typedef(s) moved to common-template-typedefs.h

fixes #317

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
Merge pull request #346 from lbudai/f/fix-template-compile-error

templates: common typedef(s) moved to common-template-typedefs.h
template: added common-template-typedefs.h to lib/template/Makefile.am

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
Merge pull request #348 from lbudai/f/fix-template-compile-error

template: added common-template-typedefs.h to lib/template/Makefile.am