fix to make Terasology compile using java8
Merge PR #1263 by @synopia - Java 8 fix