rm'd dylibs and moved -lpthread flag