Add missing typename keywords for gcc.