Small fixes in sound and clipboard

Hey,

Thanks for working on sound support for xrdp. When experimenting with this I ran into a few issues - I got them fixed as best as I could and the sound is working nicely for me now. Hope this helps.

Lukas