Fix tor script build errors regarding library search paths.