fix shared library build on darwin

34 jobs for each-fix-macos-build in 20 seconds (queued for 6 seconds)