Switch to using ACX_PTHREAD rather than our own autoconf code.