Modified to first attempt to load library from library path, then as a
fallback, load from the archive as a tmp.