gcc45 patches for 10.10

Fixes #581. These patches enable support for a two-digit minor OS X versions introduced with 10.10 Yosemite.
Do we need this one? We don't set `MACOSX_DEPLOYMENT_TARGET`, so we're less affected by this bug than MacPorts is.