TCP Patch

Reverted to Boost::Shared_Ptr references instead of std::shared_ptr for
portability.