terminfo: bug fixes for boolean vars from terminfo

- Fixed warnings.
- Reverted Makefile to build only common terminals.
- Initial implementation of function to read booleans.