Add more Maven configuration so that it can be compiled using Java 1.8