Make build work with java 8.
Merge pull request #108 from Netflix/adrian.java8

Make build work with java 8.