configure: require pthreads for POSIX builds