It seems to me that LD_LIBRARY_PATH, if set, should come first...