Added pthread to link dependencies for Make build for lib and example utility.
Added call to KineticLogger_Close in test_kinetic_allocator in order to ensure log buffer gets flushed prior to termination so that log data is not discarded