Patch to build under FreeBSD.

Thanks to David Vionnet for the patch.