Patches for OpenFOAM to build it on OS X