gcc45 patches for 10.10

Fixes #581. These patches enable support for a two-digit minor OS X versions introduced with 10.10 Yosemite.