Fix for compilation with VC++ 2005

Less liberal use of the "typename" keyword in the templated function.