[NuGet] Fix compiler warnings.