Better cleaning.
More or less sane build system.
More generic linking.
Added dependency generation to build system.