Would it be possible to update xterm to patch #304? The latest version in portage at the moment seems to be over half year old and 304 seems to work with just bumping the version (at least on my x86_64 system).
Fixed in CVS.