windows build fixes, added mingw_run_test.bat