add boost_shared_ptr for R