AC_CHECK_LIB pthread - fixes build on Linux