Don't blindly pass -ansi to GCC in DEBUG mode

This branch fixes a problem we were seeing in MOOSE with C++11 flags enabled.  Since `-ansi` implies `-std=c++98` in GCC, this flag was essentially turning off our C++11 support...

In the process of debugging this, I also enhanced the C++11 `shared_ptr` test so that it compiles under all the `METHODS` requested by the user.  This is not really required now that I found the actual bug, but it might be useful at some point in the future so I left it in.