Fixing shared_ptr that is ambigious under c++11 compilers

Fixing shared_ptr that is ambigious under c++11 compilers so that the GUI can compiles under OS X.