set LD_LIBRARY_PATH correctly during "make check"