Changes to compile for FreeBSD/mips using both gcc and clang.