Replaced .NET 4.5 specific code with something that is .NET 4.0 compatible
Replaced .NET 4.5 specific code with something that is .NET 4.0 compatible

xpicio/raven-csharp,asbjornu/raven-csharp,getsentry/raven-csharp,xpicio/raven-csharp,getsentry/raven-csharp,getsentry/raven-csharp,webaction/raven-csharp