Fix things for freebsd