Proposed changes by bapt@:
- use option helpers where possible
- simplify the makefile: USES=perl5 is always necessary
- Stop installing the terminfo files on head, it is not necessary
And since I'm there, add some missing libraried notified by stage-qa.
Submitted by: bapt
Differential Revision: D28934