Adds -lpthread to make travis happy.