make pcall loop dependent

fixes #171
use copcall only if _VERSION==Lua 5.1

This applies to luajit and Lua 5.1
Merge pull request #173 from lipp/fix-pcall-segfault

make pcall loop dependent