add -rdynamic for library