Updated shared-lib patch to fix a crash on darwin/amd64 builds