enable nuget restore, fix build