Fix FreeBSD 10 upgrade