Fix testing on FreeBSD.