add support for pthread_create (in progress)