Fixed a compile bug on nuget installation