pthread_key_t of 0 may be valid on some systems.
Merge branch 'master' into compiler