Merge pull request #1786 from nfedera/fix-2014-04-10-02

core/server: only enable activated bitmap codecs
Misc fixes to check OOM
tcp: (Mac OS X) added setsockopt(SOL_SOCKET, SO_NOSIGPIPE) to prevent the application crashing on a broken socket.
channels/smartcard: minor fixes
channels/smartcard: cleanup and simplify ListReaders call
channels/smartcard: added detailed debug tracing
using setenv instead of putenv to prevent memleaks
fixed Wlog_Uninit to also free child logger
Merge branch 'fdsapi' of https://github.com/awakecoding/FreeRDP into awakecoding
channels/smartcard: cleanup context/handle management
channels/smartcard: fix on Windows
channels/smartcard: make handles completely opaque
channels/smartcard: fix broken context/handle encoding/decoding
channels/smartcard: add more debug output
libwinpr-smartcard: fix deadlock in PCSC_SCardFreeMemory
libwinpr-smartcard: fix SCardConnectW deadlock
channels/smartcard: add more debug output
channels/smartcard: add more debug output, make distinction between reader and card state
channels/smartcard: cleanup of sanitization
channels/smartcard: make PCSC implementation even closer to WinSCard