Make terminfo compilation work for any ti source file.