Use std::shared_ptr<T> if C++11 is available
Merge pull request #142 from TsudaKageyu/shared_ptr

Use std::shared_ptr<T> if C++11 is available