forgot password file in the check_gauge
Fix compilation with Lua 5.2 (issue #146)

Use Lua 5.2 API without compatibility code
Lua 5.1 compatibility fallbacks