More shared_ptr problems fixed

- moved another using std::tr1::shared_ptr into the namespace.
- encasulated an include statement into a ifndef
- expanded an #if statement by (_MSC_VER >= 1700) beacause VC 2012
defines __cplusplus = 199711L but delivers C++11 libs.