Updated Makefile.am to explicitly enable multithreading