Substitute PTHREAD_LIBS, PTHREAD_LOCAL_LIBS, PTHREAD_INSTALLED_LIBS for consistency.