lua5.2 compatibility without COMPAT_ALL