as there is (still)

I don't know if this is a "bug" in ResidualVM or the port of LUA from my platform (either way i need to fix it to get ResidualVM to build again).
Here is the line:
g++ -Wp,-MMD,"engines/grim/lua/.deps/lstate.d",-MQ,"engines/grim/lua/lstate.o",-MP -Wall -g -mcrt=newlib -mstrict-align -mcpu=750 -mtune=7400 -W -Wno-unused-parameter -Wconversion -pedantic -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -Wno-unused-parameter -DRESIDUAL_SVN_REVISION=\"1433\" -DHAVE_CONFIG_H -DMINIGL -DUSE_OPENGL -DDATA_PATH=\"/usr/local/share/residual\" -DPLUGIN_DIRECTORY=\"/usr/local/lib/residual\" -DSDL_BACKEND -DENABLE_GRIM=STATIC_PLUGIN -I. -I. -I/SDK/Local/newlib/include/SDL -D_GNU_SOURCE=1 -c engines/grim/lua/lstate.cpp -o engines/grim/lua/lstate.o
engines/grim/lua/lstate.cpp: In function 'void Grim::lua_open()':
engines/grim/lua/lstate.cpp:144: error: invalid conversion from 'void (*)(Grim::lua_Function, const char*, int)' to 'void (*)(Grim::lua_Function, const char*, int32)'
gmake: *** [engines/grim/lua/lstate.o] Error 1
The line 144 from engines/grim/lua/lstate.cpp would be:
135 void lua_open() {
136 if (lua_state)
137 return;
138 lua_state = luaM_new(LState);
139 lua_resetglobals();
140 luaT_init();
141 luaB_predefine();
142 luaL_addlibtolist(stdErrorRimFunc, (sizeof(stdErrorRimFunc) / sizeof(stdErrorRimFunc[0])));
143 if (gDebugLevel == DEBUG_LUA || gDebugLevel == DEBUG_ALL)
144 lua_callhook = callHook;
145 }
so i'm wondering if there is anything i could do to fix (or workaround) it.
Also i need you to do two more changes (small ones) to ports.mk
lines 190 and 191 in ports.mk should look like this:
cp $(srcdir)/COPYING.LGPL $(AOS4PATH)/COPYING.LGPL.txt
cp $(srcdir)/COPYING.GPL $(AOS4PATH)/COPYING.GPL.txt
instead of
cp $(srcdir)/COPYING.LGPL $(AOS4PATH)/COPYING_LGPL.txt
cp $(srcdir)/COPYING.GPL $(AOS4PATH)/COPYING_GPL.txt
(underlines replaced with the original periods in the port installment)
Reason is, i don't want to obfuscate the original file names too much
Thank you very much