On Apple Silicon Macs, the pre-compiled x86_64 FINEMAP binary requires
x86_64 versions of several dynamic libraries (zstd, gcc runtime, libomp).
This function downloads and compiles the required libraries, then uses
install_name_tool to rewrite the binary's library paths to point
to the local copies.