Remove stderr redirct on the linking and correct typo in the emacs linking (-d to -t).