Fix unit test compilation by adding libz.
Added NSThread+Misc, with a callingFunction method.

This contains the code that was previously in the CALLEDBY macro
in LoggingMacros.h.  Improve this code so that it can parse
static function names (previously it was matching on - or + as a
prefix, and static functions don't have that).