Rearrange Makefile and scripts for Android.