agent: Fixing FreeBSD build.