Update of the build system to make the script cleaner and make ./lib/endorsed libs automatically used in both script and build classpaths.