Fix PKG_CONFIG_PATH and LD_LIBRARY_PATH