CGCLegionCRuntime: fixes and add some missing types.