Fixed a few more configure issues. Lua detection is slightly simpler now, and explicit specification of Lua components is easier.