cover the case of servers asking for cached bitmaps they have never defined
(cherry picked from commit 46a691db029912e5814b0c6fb36002a41e597825)
fix segfault due to pulse input race condition
(cherry picked from commit be5167654153cad02f821decc39ad35cd239a6ed)
codec/rfx: removed unnecessary WaitForSingleObject

The WaitForSingleObject call on TilePool's event is called with a zero time-out
interval and the event is a manual reset event ... thus no locking or waiting
is involved anyways and Queue_Dequeue may very well return NULL independently
of calling WaitForSingleObject which is already correctly handled.
careful with passwd in compatibility.c
(cherry picked from commit a4a5baf0da7c77c1d29a485f26abae6fac03a4a4)
Added proper find_feature check for JPEG library.
winpr: improve and fix locking for data structures

- Improved/completed(almost) winpr's critical section implementation
- Replaced WaitForSingleObject locking with critical sections

Note:
WaitForSingleObject should _never_ be used for granular low-contention
locks as it _always_ enters the kernel.

Just replacing WaitForSingleObject locking in Bufferpool with
EnterCriticalSection boosts the multithreaded rfx decoder
performance by almost 400% on win32.
Added proper CMake checks for libraries linked with urbdrc
Now using libraries detected by CMake for linking against libusb.
Fixed linking with libusb, now linking against correct library.
Added libusb detection CMake script.
xfreerdp: fix cursor hidding/showing with multitouch
Merge pull request #1388 from nfedera/fix-2013-08-02-01

winpr: improve and fix locking for data structures
Merge pull request #1389 from akallabeth/urbdrc_cmake_fixes

Urbdrc cmake fixes
Merge pull request #1386 from akallabeth/master

Added proper find_feature check for JPEG library.
Merge pull request #1379 from nfedera/fix-2013-07-30-01

codec/rfx: removed unnecessary WaitForSingleObject
Merge branch 'master' of github.com:FreeRDP/FreeRDP into multitouch
channels/rdpei: make use of critical section