Move the include of Xlocale.h after setting HAVE_X11R5.