Make it possible to use lua5.1 as fallback
Fix mysql configuration and linking
Cleanup and make the configure.ac bit more consistent.
Merge pull request #545 from Cloudef/automake

Automake