build: Use PTHREAD_LIBS and PTHREAD_CFLAGS
6 files changed