for __thread to work we need to link with libc/pthread