Stop truncating source to destination length if it is larger.

It seems useless to do that since the code tests for both source
length and destination to be non-zero. This fixes a cut'n'paste
problem in xterm where the paste length was limited to 1024 (BUFSIZ)
in button.c.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Use newer callback-based API for XIM.

Let libX11 load and make available the newer (X11R6) callback-based
API for XIM (expected by emacs).

This patch updates the files to match the other nls/ files.

Patch from Ian D. Leroux <idleroux@fastmail.fm> on pkgsrc-users@NetBSD.org
following a hint by Nhat Minh Lê <nhat.minh.le@gmail.com>.

Reviewed-by: James Cloos <cloos@jhcloos.com>

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Check for symbol existence with #ifdef, not #if

Reviewed-by: Jamey Sharp <jamey@minilop.net>

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>