build-win.sh: make it compile for 32 bit using mingw

Signed-off-by: Bao Haojun <baohaojun@gmail.com>