fix broken reference
remove duplicate references
perform ILMerge in release mode