Properly check for Lua 5.1.x when using lua.pc