readd -static option to mingw

Signed-off-by: xiehuc <xiehuc@gmail.com>