fix adextention to be shared lib