tidied up build script (added pause/ctrl-c, straightened OpenSSL and MySQL environment generation, added msbuild useenv switch)