Lua 5.1 compatibility fix.
Changed my fix to match the common format.
Merge pull request #45 from SkyMarshal/master

Lua 5.1 compatibility fix.