.NET 4.0 compat fix