Parameters for pthread_getspecific() call changed. pthread_keycreate() renamed to pthread_key_create().