fixed autoconf problem with pthread checking
fixed #ifdef position
extended buffer; added white space