Fix the tests to respect LD_LIBRARY_PATH

Fixes #78.
Merge pull request #79 from hashdist/fix78

Fix the tests to respect LD_LIBRARY_PATH