Changes to fix the compile for FreeBSD 5.3.