(bug 44221) Improve detection of lua library location

In FreeBSD, pkg-config has Lua 5.1 listed as "lua-5.1". So check for
that in addition to "lua" and "lua5.1".

Bug: 44221
Change-Id: I21f16f7f866cc867143857d3e2efa617863c8595