Make build work with java 8.