Freebsd support

This work adds FreeBSD support to the unicorn module.