Use ACX_PTHREAD macro for configuring PTHREADS
Fix issue #180