fixed pkcs15 version check
Target minimum OSX version to 10.7
pkcs11: Fixed wrong reference to PIN object in C_SetPIN() for SO-PIN
pkcs15-tool: fixed file reading
Fix error when signing with Swedish BankID card

Added card type check in addition to check for SC_SEC_ENV_KEY_REF_PRESENT

Added card type check in addition to check for SC_SEC_ENV_KEY_REF_PRESENT