Modify android makefiles for build in jni app.