Generic shared library support script 