Added .NET 4.5 detection

Patch to fix https://github.com/icsharpcode/ILSpy/issues/382