Yet another failed static build attempt

I still haven't managed to get a static compile working on Windows. Both
CMake and QMake simply refuse to compile statically.