fixed: events were added before event queue was ready, caused debug build assert failure.
removed sleep hack in favour of cond var wait.

git-svn-id: http://svn.synergy-foss.org/trunk@2160 33c40d52-04ba-11de-a43f-ff96a2b7a9af
fixed: assigned const to non const type

git-svn-id: http://svn.synergy-foss.org/trunk@2161 33c40d52-04ba-11de-a43f-ff96a2b7a9af