Optional lua for debugging

See the commit for more details.

I tested compilation with LUA=1 and without, but tests on more systems would be good. Right now the Makefile only includes support for the way things are set up on arch linux, since I have no damn clue where the lua 5.1 stuff is on other systems.