fix for variadic templates under win

Since the change is in core, please, check that all the tests are ok. When ready, I'll rebuild nuget packages.