Change the native library discovery strategy to be more flexible (esp.
for Linux).