modify the code to make ndk-build work.