-lposix4 is old and unneeded
drop deps on -lpthread and -lthread
mdb should be on every install; by the time we need it, the system is usually too messed up to get it installed.