Add the feature to build shared object.