i keep forgetting to add -pthread to the build!!!