fix some bug. test packages in win7 emacs24