(C) Fix xtend errors and warnings.