Reduce history size

Large history size increases history GC time...
indent: recover Emacs 24.3 behavior
Add a guard for Emacs < 24.4