chansrv: work on smartcard, mstsc and 64 bit client