Lua => Lua51

Expecting this build to very probably fail still, but this update
allows Lua51 to be compiled alongside Lua52 and for both of them to be
linked without conflict. I’ve also reverted cardpeek because that’s
been massively changed and now needs its own PR, which I’ll do in a
second.