fix Issue 9311 - shared library file extension incorrectly modified

http://d.puremagic.com/issues/show_bug.cgi?id=9311