simplify shared library usage on Linux