perl: fix not a Mach-O file on macOS