fix build on FreeBSD (issue #5003)