std: Fix compiling on FreeBSD

Ah, the wonders of not being gated on FreeBSD...
auto merge of #13613 : alexcrichton/rust/fix-freebsd-compile, r=brson

Ah, the wonders of not being gated on FreeBSD...