Infrastructure: compile terminfo when installing.