fix lib share support