remove build flag -lpthread