fix setup and add LD_LIBRARY_PATH