Merge from matt-nb5-mips64.
Remove clause 3 and 4 from TNF licenses
Switch mips to the new libc compat code layout.