build.scala cleanup

Some clean-ups to build.scala. Especially, I separated settings common for
android and android_tests into android_common references by both, also copying
needed jars and shared objects into android_tests as well.