Removed some warnings and fixed compile of RDP