Fix build and update NuGet packages.