simplified the build system.

some features remain untested.