Migrate build.gradle to gradle 0.9

See http://tools.android.com/tech-docs/new-build-system/migrating_to_09