smartcard: fix PCSC detection/build on OS X

fixes #1683