Fixed bounds on Windows and dotnet bridge fixes