Reverted WaitForSingleObject for event handles to retry the select upon receiving an EINTR error
Modified per_read_integer to handle a length of 0 (which is seen when older RDP clients connect to the FreeRDP server)
Modified code to honor the negotiated settings for 1) ENC_SALTED_CHECKSUM in the general capability set extraFlags field and 2) DRAW_ALLOW_SKIP_ALPHA in the bitmap capability set drawingFlags field.
Modified server code to honor the negotiated settings for 1) SEC_LICENSE_ENCRYPT_SC in the security exchange PDU (which controls the encryption of license PDUs from the server to the client) and 2) ENC_SALTED_CHECKSUM in the bitmap capability set.
Modified server code to honor the negotiated setting for SEC_LICENSE_ENCRYPT_SC in the security exchange PDU (which controls the encryption of license PDUs from the server to the client).
Minor fix to server side RDP security negotiation.
Merge branch 'awakecoding' of github.com:vworkspace/FreeRDP

Conflicts:
	libfreerdp/core/license.c
	libfreerdp/core/nego.c
	winpr/libwinpr/synch/wait.c
Merge branch 'shadow' of github.com:awakecoding/FreeRDP

Conflicts:
	libfreerdp/core/capabilities.c
libfreerdp-gdi: remove frame marker error output
winpr-makecert: remove dependency on OPENSSL_Applink on Windows
libfreerdp-core: remove dependency on OPENSSL_Applink on Windows
shadow: improve Mac subsystem