Enable pthread support for mingw-w64

https://bugzilla.mozilla.org/show_bug.cgi?id=1406542 starts to use pthread support for mingw-w64. We need to adapt our mingw-w64 build script for that.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information