Fix compile on FreeBSD.