fix symbol export and link library