Sort out between dependencies on internal emacs library and external.