Cleaned up C# compiler warnings