Allows maven build to work under both JDK 7 and 8.