Small bug fixes for pthreads
adding ability to get unique id for pthreads