Fix csharp build issues when doing out-of-source builds