Fix failures on FreeBSD 11