Apparently std::thread doesn't play nice with -static.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52590