Necessary patches to get ATLAS building on OSX.