Linkage register fixes for FullCodeGenerator::Generate()