Kludge to fix TLS accesses from C code