cmake: attempt to fix gh-actions not declaring HAVE_PTHREAD_H