Support Lua 5.1 to 5.2
Fix Windows luarocks support.