HPUX template issue fix.

This modification was not made hpux specific since the intend in
the rest of the file is to use specialization parameters in
template names.
Merge pull request #421 from tpaviot/review/hpux-fixes-take2

HPUX template issue fix.