removed -threaded from the library