Changes for FreeBSD support.