modify makefiles to minimize the use of LD_LIBRARY_PATH, part 2