freebsd compatible
Merge pull request #3 from jurgenweber/master

freebsd compatible