Update to Lua 5.2

Fixes #1, #4

The final commit (6beec6f) breaks compatability with 5.1; but no longer requires compat mode for 5.2