Ported some m4 code out of old projects.
Lots of build system refactoring.