ir: Add linkage field to Variable.
semantic: Apply linkage to variables.
semantic: Do not mangle C or Windows linkage variables.