Correcting luaL_reg to luaL_Reg (and adding compatibility code).