move pthread_setaffinity_np check to the build system