Fix compilation on FreeBSD.