os: Bring back the compiler TLS check.

Seems better than fiddling with pre-defined macros.