compat: use `debug.setfenv` when available.

* lib/specl/compat.lua (setfenv): In Lua 5.1, `setfenv` cannot
change environment of C functions, so use `debug.setfenv` in that
case.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>