Fully qualify shared_ptr where needed

Some systems are picky about this, others are not.