Fixes to LD_LIBRARY_PATH