add FreeBSD support (testet with ArchBSD) and (theoretical) MacOS support