support freebsd, like darwin