Add better support for FreeBSD on non-x86 machines.