stage1: update darwin code to workaround old libc bug
stage1: update darwin code to workaround old libc bug

See #1128

zig-lang/zig,andrewrk/zig,andrewrk/zig,Dimenus/zig,Dimenus/zig,raulgrell/zig,zig-lang/zig,raulgrell/zig,raulgrell/zig,raulgrell/zig,Dimenus/zig,raulgrell/zig,zig-lang/zig