Changes X11 support, #954: Implement clipboard support. Try to fix a deadlock when updating GUI window title on Windows (win32).