Fixed initialization of serial device, now aborting pending
read / write operations.
Fixed compilation error, now using WaitForMultipleObjects.
Fixed check for _GNU_SOURCE pthread extensions.
Reset file descriptor set only, if necessary now.
Using a monitor thread for tty input now to work around a WaitForMultipleObjects
limitation of winpr.
Using infinite timeout now in threads to reduce CPU usage to nearly zero.
Merge pull request #1429 from akallabeth/serial_init_fix

Serial port and CMake magic fixes
Fixed various memory leaks and resource deallocation problems.
fix per-device CAL licensing
(cherry picked from commit d6d0d81d08df4ee697ed4e8eb81264e95e1355df)
Extract shared code in RAIL channel

This patch starts a code mutualisation for a RAIL server-side
implementation. The file rail_common.c contains code that is shared
by both client and server.
Fixed invalid reallocations
Merge pull request #1451 from ilammy/realloc-fixes

Fixed invalid reallocations
fastpath: fixed sending of multiple input messages
cmd line: fixed description
cmd: fixed some compatibility messages

closes #1442
server: fix double demand active pdu during reactivation.
libfreerdp-codec/rfx: fix memory corruptions.
Merge pull request #1434 from akallabeth/memleak_fixes

Fixed various memory leaks and resource deallocation problems.
Merge pull request #1453 from bmiklautz/issue/773

fastpath: fixed sending of multiple input messages
Merge pull request #1444 from bmiklautz/master-stable-1.1-sync

fix per-device CAL licensing
Merge pull request #1447 from hardening/server-side-rail

Extract shared code in RAIL channel