Fix window configurations for emacs 24.4.