Fix xim and desc compiler

[xim] guess the server name
[configdesc-compiler] fix memory leak