use copcall only if _VERSION==Lua 5.1

This applies to luajit and Lua 5.1