Fixed ilmerge using the wrong reference assemblies if you have .NET 4.5 installed (when compiling against .Net 4.0). Cherry picked from PR #140 https://github.com/joliver/EventStore/pull/140