swig-lua: fix swig 3 compatibility