modified C# source for mono