pack/unpack with 5.2 compat

`unpack` was renamed `table.unpack` in Lua 5.2. This way is 5.1/5.2 agnostic
Merge pull request #4 from Tieske/master

pack/unpack with 5.2 compat