Move thread local code into thread_util.h
Modified timing code. Modified platform defines checked for.
This should probably actually query for the frequency...
basic string support, inspired by the antirez lib. extended unused macro