Fixes for freerdp 1.1 compatibility