added initial FreeBSD support