Support various shared library names
Whitespace: remove extra newlines