added FindPthread and updated key.c