Fixed ilmerge using the wrong reference assemblies if you have .NET 4.5 installed (when compiling against .Net 4.0).

Currently EventStore il compiled against .NET 4.0 (it's hardcoded in the build scripts), but when you have .NET 4.5 installed the wrong reference assemblies can be used during the Ilmerge process.

take a look at this article:

http://www.mattwrock.com/post/2012/02/29/What-you-should-know-about-running-ILMerge-on-Net-45-Beta-assemblies-targeting-Net-40.aspx

The same problem (and fix) applies to CommonDomain too.