some refinements
swig binding generator
switch to LuaJIT's FFI API