Fix LIBRARY_PATH and LD_LIBRARY_PATH