Updated several VCS packages and emacs

  * emacs: added patches to compile emacs vs giflib5.

Signed-off-by: Vladimir Lomov <lomov.vl@gmail.com>