Merge pull request #3 from tpoechtrager/master

add freebsd support
Merge pull request #4 from tpoechtrager/master

Add Mac OS X cross compilation support
synch upstream
add USESYSLIBS option