correcting linking to pthread.
finishing test case for DebugMsgFormatter (passing).
conditional build of test cases