Minimal changes that make the distributed install work propertly.

And also a rename of main clases of each package to "base".