Replace dependency of google-collections with guava.
Remove usage of Gradle internal API.

RB=283854
R=gogenc,jbetz,slim,si-dev,sfaber
A=jbetz