std: Fix compiling on FreeBSD

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