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