luaffi: basic interface support