Native AoT dependency issues - C#