Fix for SCARD_E_INVALID_PARAMETER on Mac OS X Mavericks and earlier.