Construct module table manually for better 5.1/5.2/LuaJIT compatibility