Support C++ standard < C++11

if __cplusplus < 201103L then use tr1.