Linux: fixed build errors with old glibc versions that do not have the gettid() function. Android: added an Android 5+ implementation for pthread2tid conversion.
Linux: fixed build errors with old glibc versions that do not have the gettid() function.
Android: added an Android 5+ implementation for pthread2tid conversion.

psiha/sweater