Use boost::allocate_shared in zerocopy streambuf