Fixing build.gradle to enable building with gradle.