Update the apply / rebuild scripts to use the new system. Recompiling on new versions was a bit tricky, but we need to avoid adding jars to the repo.