Fix bug #214:
* Support both Lua 5.1 and 5.2 by adding wrappers around a couple of Lua
API functions which have changed between the versions.
Merge pull request #235 from jugglerchris/fix_214

Fix bug #214: