fix buggy TLS size/alignment computations in static-linked TLS