Support gcc47 typetraits