Patch for building on Mac