add compat_envvar.lua: _ENV support for Lua 5.1