Port HAVE_PTHREAD configuration to MirBSD 10 (Bug#10201).