Fix Lua examples for running under Lua 5.2

Includes cherry picking parts of
https://github.com/v-for-vandal/swig/commit/ce2760f77e9ab04ce276244ee4329aeba7ddea54
Fix missing fragment name in warning message about missing fragment
Revert fragment <stdexcept> for non-UTL languages