Change hsgthread to C++ because the mingw32 windows headers seem to work better that way.