Attempt static linking of MinGW libraries

libwinpthread-1.dll isn't found in MinGW/bin and I'm not sure where else
to find it right now, so let's try this.