Fixed memory corruption bug
Ported library to LUA 5.2
Ported test cases to LUA 5.2
Fixed missing macro error
Merge pull request #1 from Svalorzen/lua5.2

Lua5.2