Modify native library caching so libraries are extracted into the same directory if possible. (FELIX-1731)