Updated with a more correct patch from the official commit to the gcc trunk. This enables the use of make_shared when disabling RTTI.