builds with threads on linux fine