Added TLS stuff, added ASFLAG to use fPIC, added files for pthreads