Finally found the magic command-line to make GDwrap.dll link to dotnet.