buildenv/win32-static: add Qt 4 build script.
buildenv/win32-static: add MariaDB client library build script.

This also adds a script for installing a recent CMake binary.
We can't use Cygwin's, as it's built to be Unixy, and can't
generate MSVS projects or NMake makefiles.