add LuaJIT / Lua 5.1 compatibility

now compile with LuaJIT
(issue #4)