xfreerdp: improve common client API