fix errors at compile on emacs24.3.1