Add a patch which disabled typeid-based getters in shared_ptr.

This enables the use of -fno-rtti to decrease the binary footprint. See original bug report at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42019.