Configure IDREF typed attributes to point to the referenced element types.
Stop redefining things we can pull in with using.
Install missing includes.