use WindowsIdentity.GetCurrent for header

fixes #2031
Merge pull request #2494 from Particular/WindowsIdentityGetCurrent

use WindowsIdentity.GetCurrent for header