libxrdp: no logic change, warnings and code cleanup