Fix tools build