Well, this hasn't been tested at all. I just ran htod at the original header, and removed some stuff that wouldn't work. I guess it's better than nothing.
Todo: Make sure luaconf.d is okay Todo: perhaps add version (LUA_COMPAT...)