rename configure.in to configure.ac
fix build with lua 5.2
fix broken test trying to invoke return value rather than process
returning the value
update deprecated INCLUDES to AM_CPPFLAGS
idem