Fix for FreeBSD9