Use ACX_PTHREAD to handle pthread library name resolution and whatnot