Remove use of TR1's shared_ptr.

gcc and Visual C++ use different TR1 header locations. So, (as long as we
are not using C++11) the use of QSharedPointer is more portable.