add pthread++/functions.h to pthread++/thread.h