Android: tweaks for build scripts to reduce libraries size