Remove non-existant .PATH components from a number of Makefiles.
Sort names.
Remove unused function.
Add libthread_db, a thread debugging support library.