Rearrange scripts for building android ndk application.