improved Linux shared library support