Merge pull request #172 from floppym/master

Remove call to rfx_context_set_cpu_opt, which was removed from FreeRDP
Follow the freerdp refactoring of streams and events to compile against master
Merge pull request #191 from darklajid/bug_187

Fix compilation against freerdp master
Replace the rest of the stream macros with the new Stream macros from winpr/stream.h