LuaJIT compatibility
revert unwanted filemode changes
Actual fix for logging with LuaJIT
Merge pull request #7 from welwood08/master

LuaJIT compatibility