fix DSO linking error