Build system mostly finalized