Add check in configure script for pthread methods

This is in a separate library in AIX and broke building.  Fixed now.