Upgrade emacs to 24

Since Ubuntu doesn't have an emacs24 package, this builds emacs24
from the source.