Make build work with latest intellij and java 8.

cc @quidryan @allenxwang 

p.s. is it ok to update deps? most are out of date and some are *really* out of date (ex. guava)