Fix termcap loader