Enable building on buildhive using Java 7