Fixed issues with build procedure for csharp code