try to add support for pthread_create/pthread_join