Fix FreeBSD build failure