ILMergeHelper used incorrect TargetKind - closes #312