build: Allow build with Lua 5.2

Allow Lua versions up to Lua 5.2 during configure.