Fix for compilation with VC++ 2005.

Less liberal use of the "typename" keyword in the templated function.
Merge pull request #8 from Gaerzi/master

Fix for compilation with VC++ 2005