Minimal changes stolen from BERI and from John's mips work to build
and support clang-head builds of FreeBSD MIPS64 targets
Requires clang built from head with the following reviews applied:
https://reviews.llvm.org/D16807
https://reviews.llvm.org/D29032
https://reviews.llvm.org/D29218