Revert "Remove unused typedef to make Lua compile"

This reverts commit a58b8ec57898cff3839b76990e7eca92e75074cf.
A better fix for gcc-4.8, from jpeach