buildenv/win32-static: various MariaDB fixes.

- Make sure we always build a release build.
- Don't install a DLL version of the library.
- Rename the static library to libmysql.lib to allow
  non-MariaDB aware software to link against it without
  too much hassle.