build: add AX_PTHREAD macro and error message.
Merge pull request #18 from agordon/ac_pthread

build: add AX_PTHREAD macro and error message.