Add almost all dependent jars.
Fix build targets to properly compile tests.