Add support for building javadoc.