generating portable binaries for MacOS