[Android] Fixing build errors for ndk-r9.
Merge pull request #3319 from dumganhar/android-ndk-r9-fix

[Android] Fixing build errors for ndk-r9.