changed  -dynamiclib to -shared