[ELF] Use typedefs to make class field declarations shorter.

No functional changes.