Fix #259 by only using the custom x86_64 trampoline on MacOS and Linux