missing boost::scoped_ptr includes

Without these includes, the code doesn't build with latest master of Boost.