[Bug 5020] configure needs -pthread to find pthread.h