Update ax_lua.m4

Updates ax_lua.m4 to 2014-10-15 version from git.savannah.gnu.org, revision 82542777.

This improves BSD support.

Fixes #188