Improve .NET error for cygwin