Major build system refactoring.