Fixed freebsd build