Lua maintenance: upgrades and new tests

Today turned into Lua maintenance day.

Here we have:
  - upgrade cjson to latest version
  - upgrade cmsgpack to latest version (also removes a build-time warning)
  - add tests for cjson and cmsgpack to verify they are properly installed and bound to global tables
  - fix a lingering Redis build issue on some versions of Solaris