Fix warning on FreeBSD