allow building in java 8