Detect shared libraries.