Fix maven build with JDK below 8