Fix FreeBSD compilation
Merge branch 'stable'
Fix FreeBSD sendfile() and add an include