fixes to makefile, plus replaced luaL_len with lua_strlen