Fix for FreeBSD