branches: 1.37.18;Use "extern" properly for referencing globals defined in other modules.Now builds cleanly with -warn-common.