Allow building with terminfo-0.4.
Bump version to 0.7.1.2.