Fix for emacs 24.x + RHEL6.2 (bug-report 14458 at gnu.org)