Fix build problems on MIPS and Linaro NDK.

Merged android.toolchain.cmake from project
https://github.com/taka-no-me/android-cmake
commit: fd1f7055f8b7338644d58d9a2015a784dfa3a5ca
Merge pull request #998 from asmorkalov:android_cmake_mips_fix