xrdp-ng: improve protocol library