Configure LD_LIBRARY_PATH properly