get dylib build working on mac