Use errno definition with __thread for now only in libc and ld.so.