Fix compilation on lua 5.2