Fixed conditional defines&warnings in csharp block
Implemented #89