- switched from CHECK_INCLUDE_FILE to CHECK_LIBRARY_EXISTS
fixes detection issue of readline on archlinux due to
missing imports (unknown type FILE)
- discovering tinfo using CHECK_LIBRARY_EXISTS
the result is used in the discovery of readline as the same
error as discussed in walterschell/Lua#32 prevented the
detection of readline