C# port: fix reference paths