removed x11 dependencies for emacs
fixed building erlang with repacked tarballs
added dependecies check for erlang