include: avoid using C++ 'template' reserved word

fixes #1394