Livestatus patches

Here are a bunch of patches pertaining to both build system changes, unit test plumbing + a number of testcases, and unicode support in regular expressions.