Fixed the build on Debian/kfreebsd
Merge pull request #586 from grimmy/master

Build fails on Debian/kfreebsd