add pthread_setaffinity_np and pthread_getaffinity_np functions