fix build when using libc++

Small fix to use std::shared_ptr instead of std::tr1::shared_ptr when building against libc++ from libcxx.llvm.org