FreeBSD compatibility fix.