Add NDK r10, arm64-v8a, x86_64, mips64 support.

-mthumb is still being set on a AArch64 target which fails here.