added support to cross compile to darwin, linux, and freebsd