Make test work on FreeBSD