add support for lua5.1.

Signed-off-by: Daogang Tang <daogangtang@126.com>