Fix architecture detection for NDK.