fix for build with mixed .NET versin