When configuring KQ, KQ can link against either lua50 or lua5.1. By design, it prefers lua50. However, according to scripts/Makefile.am, it compiles with luac. Luac is usually a symlink to the latest lua, which in this case, is 5.1. In windows, I would guess that luac would also point to the latest version of lua installed.
So, you end up with kq linking against liblua50, but the scripts are compiled against lua5.1. This causes loading the lob files to fail. Specifically, you get the error message, "Could not load global.lob."
I could make configure.ac prefer linking against liblua5.1, and fall back to liblua50, but that would only half-way solve the problem. luac might be linked against an older version of lua, in which case the reverse problem would occur.
Could someone with more experience in autotools make it so that scripts/Makefile.am uses luac50 if config.h defines HAVE_LUA50_LUA_H, and luac5.1 if it defines HAVE_LUA5.1_LUA_H?