portability: do not rely on glibc only timezone global var