Merge MeqTrees patches with upstream repos

Commit as many patches as possible to the trunk branches of various
MeqTrees repositories. The patches will remain referenced in these
formulas until the various packages have a new release. Move casarest
and purr patches to GitHub gists to allow them to be optional.
Xcode 4.6 update

The latest clang still fails to compile casarest and meqtrees.