return it on create_window and destroy_class. Only create a single instance of the desktop class for the whole session. Added some missing locking in the client-side class management.
GetClassWord/Long (based on a patch by Mike McCormack). Various fixes to the class instance handling.