Mock versions of java.lang.invoke from Java 7-8 for compilation