xrdp: xrdp_mm.c fix some warnings and code cleanup