Makefile.am added thread support
Makefile.am added thread support