librust: Stop rust tool from crashing on macos.