ILMergeHelper used incorrect TargetKind - closes #312

(cherry picked from commit 8ec37cf161b67aadd3018a5befd9823a8ec35f1a)