http://stackoverflow.com/search?q=luaL_reg+incomplete+type
libs/edje_lua2.o edje_lua2.c:183: error: array type has incomplete element type
I guess it's not compiling because lua-5.2 doesn't have this:
#define luaL_reg luaL_Reg
http://lua-users.org/lists/lua-l/2011-07/msg00708.html