Build system fixes
Improving C patch tools
Do not needlessly rebuild