emacs24: Let -nox be a whole lot less X than it was

--with-x-toolkit=no still wants to -lX11 when checking for ncurses
Merge pull request #897 from danieroux/emacs24-nox

emacs24: Let -nox be a whole lot less X than it was