common: fix some warning for TLS