workaround incomplete std::shared_ptr compatibility of old boost versions