tests: fix build on freebsd10.