fixed Makefile.am and configure.ac
multiple threads creation