Refactor Makefile for Android.