Fix migw-w64-runtime-post and tests scripts for GCC static build.