fixed Link.Session handle type as IntPtr