fix .NET CF errors