Fix a compilation error with gcc 4.4.

Fix the error "using typename outside of template" when using gcc 4.4