Commit de62a1096 broke win32 as it removed the HAVE_X11R6 checks for building xim, but did not replace them with USE_X11. This made it try to build xim on non-X targets.
de62a1096