repair build errors