Fix type_traits support for GCC 4.6