Fix compilation with compilers with non-totally-broken templates