Fix DSO ncurses terminal interface linking problem