lua: improve configure checks

The base 'lua' library has different names on different OS' and even
Linux distro's. Instead of selecting the proper one, we now just try
all. This way no OS/distro specific knowledge about the name is needed.

Prscript:
- PR build: https://buildbot.openinfosecfoundation.org/builders/inliniac/builds/12
- PR pcaps: https://buildbot.openinfosecfoundation.org/builders/inliniac-pcap/builds/12