Fix DSO linking problem