Fix gcc/clang compile error (add typename)