xrdp-ng: refactor libscp