fixed freebsd errors
Merge pull request #37 from TLINDEN/master

fixed freebsd errors