Enhanced build script to add javadoc, sources and popupbutton-dep.