unix: fixed build on freebsd