Add support for FreeBSD; fixes #5