Add test scripts for MinGW and Android.
Update mega-test, and make tests pass.
Fix uninitialized memory usage found by valgrind.
De-flake timing-dependent test.
Update bootstraps.