Use std::tr1::shared_ptr instead of std::shared_ptr to stay C++03 compat...

...ible