[fix] change to -pthread to compile in Linux