Fixed C++11 check for SharedPtr.