Set the LD_LIBRARY_PATH when running tests

This way when you disable rpaths you can still run `make check`
auto merge of #12099 : alexcrichton/rust/rpath-tests, r=thestinger

This way when you disable rpaths you can still run `make check`