removing boost/shared.hpp dependency