clean up dirs/files created by ExternalLibraryCache
for Java, allow compilation against an external library