add support for javadoc build with java8