cmake: set version and soversion on gemrb_core for debian
DialogItemWindow: close the windows just before starting the dialog

fixes lilarcor not always working