Fixed ilmerge using the wrong reference assemblies if you have .NET 4.5 installed.

Got this code from the same change in joliver/EventStore.