smartcard: fix PCSC detection/build on OS X

fixes #1683
smartcard: added missing defines for OS X
build: cleaned up and fixed PCSC detection
wfreerdp: fix gdi polyline mistake.
Merge pull request #1684 from bmiklautz/issue_1683

smartcard: fix PCSC detection/build on OS X
drdynvc: fix free invalid pointer.
wfreerdp: add winmm audin subsystem.
Merge pull request #1687 from zhangzl2013/audin-winmm

add winmm audin subsystem
Merge pull request #1686 from zhangzl2013/wfreerdp-bugfix

wfreerdp: fix gdi polyline mistake.
drive: minor code formatting.
drive: win: fix file open flag.
drive: win: add 64 bits support.
drive: win: add file rename support.
Merge pull request #1689 from zhangzl2013/drive

Drive channel fix on windows
rdpsnd-server: fix broken message parsing.