tests: fix pkd build on FreeBSD

Signed-off-by: Jon Simons <jon@jonsimons.org>