Fix GTK2 compatibility

Fix two GTK2 version issues: VNC segfaults and RDP plugin memory leak.