Interacting with native libraries in .NET Core 3.0