Added incomplete FreeBSD support.