Enabling sync API and adding p-Invoke to get UserPrincipalName for non-interactive plus WIA in ADAL .NET