Changes to libIntegra to support compilation on Mac OS