Fixed a few bugs in the Windows S/MIME implementation