Added support for smartcard authentication under Windows