Add .gitignore
Make this work under LuaJIT.
Remove unused variable warning.