title: Can't install lua package using luarocks due to conflicting architecture
body: <p>I'm getting the following error when trying to install the <code>lpeg</code> library using <code>luarocks</code>:</p>
  <pre><code>lptree.obj : error LNK2019: unresolved external symbol luaL_checkudata referenced in function lp_gc
  C:\Program Files (x86)\Lua\5.1\lib\lua5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
  lpeg.dll : fatal error LNK1120: 55 unresolved externals
  
  Error: Build error: Failed installing lpeg.dll in C:\Program Files (x86)\Lua\5.1\rocks/lpeg/1.0.2-1/lib
  </code></pre>
  <p>I'm using the following version of <code>lua</code>:</p>
  <p><code>Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio</code></p>
  <p>And the following version of <code>luarocks</code>:</p>
  <pre><code>luarocks 2.0.2
  LuaRocks main command-line interface
  </code></pre>
  <p>I installed <code>lpeg</code> using the command provided <a href="https://luarocks.org/modules/gvvaughan/lpeg" rel="nofollow noreferrer">here</a> namely:</p>
  <p><code>luarocks install lpeg</code></p>
  <p>I'm not sure what I'm doing wrong. Any ideas?</p>