config: Set the LD/DYLD temporary path for configure and make.

Both phases of the build need to find the libraries in their temporary
path.