Don't try to link to shared library only if it is a resource-only library
Show full stack trace in attempt to track down concurrency issue