[Build] Fix some build error & warnnings on ndk-build.