Fixes for the build and some missing JARs and source code