fix makefiles for Android build system