Set PATH and LD_LIBRARY_PATH in compile