Switched from std::tr1::shared_ptr to boost::shared_ptr for better compatibility across gcc versions