[builds] Updates to check for a working pthread library

	* builds/unix/configure.raw: Check for `pthread', also check if it
	is working.
2 files changed