Something's odd with compat-lua
I think the pkgconfig file has the wrong include directory. As
it doesn't include Lua-5.1 in the path. This sort of gets covered
with the Cflags parameter but may be confusing the build process.
If it looks like this is the case, I'll file a bug with compat-lua.
I also did't see a lua-5.1 .so file, but I am hoping the includes
for 5.1 actually make things work for the normal .so file.
I think I also need to require compat-lua for the server.