Fixed KopiLua (sync with 5.1.5 and compatible with LuaInterface)