add freebsd support