do not use Boost shared_ptr by default

and thus do not require boost as dependency

(cherry picked from commit b128199eeeee694d6912be1c0415ee256f774b3b)