Made darwin support extend to freebsd.
Merge branch 'master' into addfreebsd
Merge pull request #2 from cookieo9/addfreebsd

Added freebsd support