stage1: fix unused function error on freebsd and netbsd
stage1: fix unused function error on freebsd and netbsd

closes #2012
closes #2013

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