Fix panics in FreeBSD 10 builds