extend luajit ffi module to give more affinity to C codes