added #if def to skip std::shared_ptr test when compiler doesn't support C++11