Fix compil error in g++ due to typename