Fix build warning on FreeBSD.